Skip to content

IWF-1174: add logging for S3 & local activity errors#599

Open
ktrops wants to merge 2 commits intomainfrom
jira/katiea/IWF-1174
Open

IWF-1174: add logging for S3 & local activity errors#599
ktrops wants to merge 2 commits intomainfrom
jira/katiea/IWF-1174

Conversation

@ktrops
Copy link
Contributor

@ktrops ktrops commented Mar 11, 2026

Description

Checklist

  • Code compiles correctly
  • Tests for the changes have been added
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is not backwards compatible)

Related Issue

Closes #issue_number

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 23.14050% with 93 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.04%. Comparing base (ed9f8c2) to head (037a849).

Files with missing lines Patch % Lines
service/interpreter/activityImpl.go 31.81% 58 Missing and 2 partials ⚠️
service/common/blobstore/store_impl.go 0.00% 33 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #599      +/-   ##
==========================================
- Coverage   65.70%   65.04%   -0.66%     
==========================================
  Files          64       64              
  Lines        6461     6577     +116     
==========================================
+ Hits         4245     4278      +33     
- Misses       1893     1974      +81     
- Partials      323      325       +2     
Files with missing lines Coverage Δ
service/common/blobstore/store_impl.go 58.13% <0.00%> (-10.17%) ⬇️
service/interpreter/activityImpl.go 69.40% <31.81%> (-8.80%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

if err != nil {
if activityInfo.IsLocalActivity {
reqBytes, _ := json.Marshal(input.Request)
logger.Info("StateApiWaitUntil local activity return on error",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be Warn or Error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋
Warn would probably be better. Teams are having trouble understanding why local activity fails and most of the time it's failing due to payload size.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should push Temporal to fix their history model: temporalio/temporal#4389
temporalio/temporal#5310 so that iWF can get rid of Local Activity

@something-something-something
Copy link
Contributor

lgtm

@dillia23
Copy link

also looks good to me!

Copy link
Contributor

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be tons of logs . It will be better to enable with a config instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants